<cfif IsUserInRole("Super User") or IsUserInRole("Regional Admin")>
	<cfinclude template="#request.pathToUI#/grids/workshops.cfm" />
<cfelse>
	<div class="row">
		<div class="banner prepare-banner">
			<div class="banner-text">
				<span class="banner-header">Register Workshops</span><br />
				<span class="banner-subheader">Last year over 42,000 students attended Cash for College workshops</span>
			</div>
		</div>
	</div>
	<div class="row body-row">
		<div class="span3">
			<ul class="nav nav-tabs nav-stacked sidenav">
				<li><a href="#best-practices">Best Practices</a></li>
				<li><a href="#workshops">Registered Workshops</a></li>
				<!--- <li><a href="#stats">Stats</a></li> --->
				<li><a href="#whats-next">What&rsquo;s Next</a></li>
			</ul>
		</div>
		<div class="span9 content">
			<section id="best-practices">
				<h3>Best Practices</h3>
				<p>The FAFSA is an online form that has been simplified over the last few years by the federal government. The new California Dream Act Application is an online form. It is a best practice to provide students and families a direct opportunity to complete their applications online, with computer access at your workshop. Only workshops that offer Internet-connected computers for families to complete applications on site will be eligible to apply for workshop sit support funds.</p>
				<p>We ask that you not hold workshops on major federal holidays or holiday weekends, including:</p>
				<ul>
					<li>January 1 & 2 - New Year's holiday</li>
					<li>January 19 - Martin Luther King, Jr. birthday</li>
					<li>February 16 - President's Day</li>
				</ul>
				<p>We discourage you from holding workshops on the following dates:</p>
				<ul>
					<li>January 3-4 - The online California Dream Act Application will be available beginning Monday, January 5</li>
					<li>February 14 - Valentine's Day</li>
					<li>February 18 -  Ash Wednesday</li>
					<li>February 19 - Chinese New Year</li>
				</ul>
				<!--- <p>The FAFSA is an online form that has been simplified over the last few years by the federal government. The new California Dream Act Application is an online form. It is a best practice to provide students and families a direct opportunity to complete their applications online, with computer access at your workshop.</p>
				<p>We ask that you not hold workshops on major federal holidays or holiday weekends, including:</p>
				<ul>
					<li>January 1 & 2 - New Year's holiday</li>
					<li>January 20 - Martin Luther King, Jr. birthday</li>
					<li>February 17 - President's day</li>
				</ul>
				<p>We discourage you from holding workshops on the following dates:</p>
				<ul>
					<li>January 3-5 - The online California Dream Act Application will be available beginning January 6</li>
					<li>January 31 - Chinese New Year</li>
					<li>February 13 - Ash Wednesday and the beginning of Lent</li>
					<li>February 14 - Valentine's Day</li>
				</ul>
				<p><strong>In 2014 the March 2nd deadline falls on a Sunday.</strong> Applications will be accepted through the next day, Monday, March 3. Catch-all workshops may be scheduled for the deadline weekend.</p>
				<p>The FAFSA is an online form that has been simplified over the last few years by the federal government. It is a best practice to provide students and families a direct opportunity to complete their FAFSA online, with computer access at your workshop.</p>
				
				<p>We ask that you not hold workshops on major federal holidays or holiday weekends, including:</p>
				
				<ul>
					<li>January 1 &amp; 2 - New Year's holiday</li>
					<li>January 21 - Martin Luther King, Jr. birthday</li>
					<li>February 18 - George Washington birthday</li>
				</ul>
				<p>We discourage you from holding workshops on the following dates:</p>
				<ul>
					<li>February 10 - Chinese New Year</li>
					<li>Febrauray 13 - Ash Wednesday and the beginning of Lent</li>
					<li>February 14 - Valentine's Day</li>
				</ul> --->
			</section>
			<section id="workshops">
				<h3>Registered Workshops</h3>
				<cfscript>
					base = new assets.calgrants.com.Base();
					isWorkshopSeason = base.isWorkshopSeason();
					workshopGateway = new assets.calgrants.com.gateway.WorkshopGateway();
					workshops = workshopGateway.query(Organization_ID = request.authUser.organizationID, Program_Year = request.currentProgramYear, Manager_ID = IIf(IsUserInRole("Site Contact"), request.authUser.userID, ""));
				</cfscript>
				<!--- <cfquery name="workshops" datasource="WMS">
					select *
					from workshop
					left outer join site on site.site_id = workshop.site_id
					where Program_Year = <cfqueryparam cfsqltype="cf_sql_varchar" value="#request.currentProgramYear#" />
					and (
						<cfif request.authUser.role eq "Organizer">					
							workshop.Organization_ID = <cfqueryparam cfsqltype="cf_sql_integer" value="#request.authUser.organizationID#"> or
						</cfif>
						Organizer_ID = <cfqueryparam cfsqltype="cf_sql_integer" value="#request.authUser.userID#"> or
						Manager_ID = <cfqueryparam cfsqltype="cf_sql_integer" value="#request.authUser.userID#">
					) and
					workshop.Deleted = 0
					order by Workshop_Date, Start_Time
				</cfquery> --->
				<cfif IsUserInRole("Organizer") AND isWorkshopSeason>
					<cfoutput>
						<p><a href="?view=editWorkshop&returnView=#view#&Workshop_ID=0" class="btn btn-success">New Workshop</a></p>
					</cfoutput>
				</cfif>
				
				<cfif workshops.RecordCount gt 0>
					<table id="workshopsTable" class="table table-hover table-bordered">
						<thead>
							<tr>
								<!--- <th>Program Year</th> --->
								<th>Workshop</th>
								<th>Wrapper Code</th>
								<th>Status</th>
								<th class="action"></th>
							</tr>
						</thead>
						<tbody>
							<cfoutput query="workshops">
								<tr>
									<!--- <td>#Program_Year#</td> --->
									<td>#Site#<br />#DateFormat(Workshop_Date, "m/d/yyyy")# #TimeFormat(Start_Time, "h:mmtt")#-#TimeFormat(End_Time, "h:mmtt")#</td>
									<td>#Evaluation_Code#</td>
									<td>
										<cfif Approved>
											Approved
										<cfelse>
											Pending Approval
										</cfif>
									</td>
									<td>
										<cfif IsUserInRole("Site Contact") OR Approved>
											<a href="?view=workshop&Workshop_ID=#Workshop_ID#" class="btn btn-success btn-block">View</a>
										<cfelse>
											<a href="?view=editWorkshop&Workshop_ID=#Workshop_ID#" class="btn btn-success btn-block">Edit</a>
										</cfif>
									</td>
								</tr>
							</cfoutput>
						</tbody>
					</table>
				<cfelse>
					<div class="alert alert-info notFound">No registered workshops</div>
				</cfif>
			</section>
			<section id="whats-next">
				<h3>What&rsquo;s Next</h3>
				<h4>Order Materials</h4>
				<p>Order the materials you need to promote and conduct your workshops.</p>
				<p><a href="?view=orders" class="btn btn-success">Order Now</a></p>
			</section>
		</div>
	</div>
</cfif>
